# ustatus 

Simple cli tool for creating status text to something like dwm-bar.

## Items

| Item              | Dependencies | Description                                          |
| :---:             | :---         | :---                                                 |
| `time`            | `datetime`   | Display current time with strftime formating.        |
| `cpu_usage`       | `psutil`     | Display percent of cpu usage.                        |
| `memory_usage`    | `psutil`     | Display memory usage (percent, available, etc...)    |
| `cryptocurrency`  | `requests`   | Display cryptocurrency from coingecko.com api.       |

## Installation

```sh
git clone https://notabug.org/loliconshik3/ustatus.git

cd ustatus

vim ustatus/config.py

python setup.py install
```

## config.py example

```py
# import make functions from mkitems.py file
from .mkitems import *

# setup list of items
items = [
    make_cpu_usage(),
    make_memory_usage(),
    make_time(),
]

# Execute is action with status
#   setxroot -> setxroot -name "status"
#   stdout   -> just print status in terminal
execute = "stdout"
```

## Usage

### Without install

```sh
python __main__.py
```

### After install
```sh
ustatus
```

## Contacts

| Contact                                               | Description       |
| :---:                                                 | :---              |
| [`Matrix`](https://matrix.to/#/#librehub:matrix.org)  | Matrix server.    |
| [`Discord`](https://discord.gg/naGkzRN)               | Discord server.   |

## Donates
**Monero:** `47KkgEb3agJJjSpeW1LpVi1M8fsCfREhnBCb1yib5KQgCxwb6j47XBQAamueByrLUceRinJqveZ82UCbrGqrsY9oNuZ97xN`

